package com.usian.user.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-wemedia")
public interface WmUserFeign {
    @PostMapping("/api/v1/wmuser/save")
    public ResponseResult save(@RequestBody WmUser wmUser);

    @GetMapping("/api/v1/wmuser/findByName/{name}")
    public WmUser findByName(@PathVariable("name") String name);
}
